package easystudy.member;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.RedirectView;

@Controller
public class LogoutController {

	@RequestMapping(value="/member_logout.me")
	protected ModelAndView doLogoutProcess(HttpServletRequest req){
		HttpSession session = req.getSession();
		session.setAttribute("keyword","");
		session.setAttribute("id","");
		session.setAttribute("num",0);
		session.setAttribute("byhit",0);
		session.setAttribute("grade",3);
		session.setAttribute("v_count","");
		session.setAttribute("boardcount","");
		return new ModelAndView(new RedirectView("intro.ad"));
	}
	
}
